package com.cn.service.server.mc.Impl;

import com.cn.bean.pojo.mc.K3FlXx;
import com.cn.bean.pojo.mc.McYc;
import com.cn.bean.pojo.mc.McYcList;
import com.cn.mapper.dao.db1.mc.McYcDao;
import com.cn.mapper.dao.db1.mc.MoXiaoDao;
import com.cn.service.server.mc.McYcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class McYcServiceImpl implements McYcService {
    @Autowired(required = false)
    private McYcDao mcYcDao;
    @Override
    public int addMcYc(McYc mcYc) {
        return mcYcDao.addMcYc(mcYc);
    }

    @Override
    public int addMcYcList(McYcList mcYcList) {
        return mcYcDao.addMcYcList(mcYcList);
    }

    @Override
    public List<K3FlXx> getK3FlXxAll(int limit, int page, String djBh, String k3Mc, String parentId) {
        return mcYcDao.getK3FlXxAll(limit,page,djBh,k3Mc,parentId);
    }

    @Override
    public Integer getAutoidMcYc() {
        return mcYcDao.getAutoidMcYc();
    }

    @Override
    public Integer getAutoidMcYcList() {
        return mcYcDao.getAutoidMcYcList();
    }

    @Override
    public int upDateMcK3FlDgXxZt(String djBh, int zt) {
        return mcYcDao.upDateMcK3FlDgXxZt(djBh,zt);
    }

    @Override
    public List<McYc> getMcYc(int limit, int page, String documentNumber) {
        return mcYcDao.getMcYc(limit,page,documentNumber);
    }


}
